package com.jt.www.biz.order_pc.service;

import com.jt.www.domain.vo.InsuredUserInfoVo;
import com.jt.www.model.insured.InsuredUserInfoEntity;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author admin_ltf
 * @create 2019-04-28 10:36
 */
@Service
public interface InsuredInfoService {

    /**
     * 增加被保险人信息
     *
     * @param insuredInfo
     * @return
     */
    Integer addInsuredInfo(InsuredUserInfoEntity insuredInfo);

    /**
     * 编辑被保险人信息
     *
     * @param insuredInfo
     * @return
     */
    Integer updateInsuredInfo(InsuredUserInfoEntity insuredInfo);

    /**
     * 删除被保险人信息
     *
     * @param id
     * @return
     */
    Integer deleteInsuredInfo(String id);

    /**
     * 根据usercode查询被保险人
     *
     * @param usercode
     * @return
     */
    List<InsuredUserInfoVo> searchInfoByUserCode(String usercode);


    /**
     * 根据id查询被保险人信息
     *
     * @param id
     * @return
     */
    InsuredUserInfoVo searchSingleInfo(String id);

    /**
     * 判断被保险人信息是否需要签署协议
     *
     * @param userCode
     * @param insuredName
     * @return
     */
    Boolean isSignAgreement(String userCode, String insuredName) throws Exception;
}
